/*
 * EmptyInstruction.java
 * 
 * last update: 16.01.2010 by Stefan Saru
 * 
 * author:	Alec(panovici@elcom.pub.ro)
 * 
 * Obs:
 */

package engine;

/**
 * written like this : ";"
 */
class EmptyInstruction extends DefaultInstruction{

	public EmptyInstruction(EmptyInstruction original){
		super(original.ns, original.delayBefore, original.desc);
	}

	public EmptyInstruction(NameSpace ns, int delaybefore, InstructionDescription desc,
			DefaultInstruction next){
		super(ns, delaybefore, desc);
		add(next);
	}

	public void execute()
	throws InterpretTimeException, SimulationStoppedException
	{
		waitToRun();
	}
	
	public Object clone()
	{
		return new EmptyInstruction(this);
	}
}

